﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
    <script type="text/javascript">
    function ArrayPrint(arr)
    {
        if(arr.length<=0)
        {
            return "";
        }
        var s = arr[0];
        for(var i=1;i<arr.length;i++)
        {
            s += "|"+arr[i]
        }
        return s;
    }
    var arr1 = new Array();
    arr1[0] ="sad";
    arr1[1] ="tom";
    arr1[2] = "kite";
    document.write(ArrayPrint(arr1));
    </script>
</head>
<body>

</body>
</html>
